package ca.jsbr.as2js_lib.event 
{
	import flash.xml.XMLDocument;
	/**
	 * ...
	 * @author jsbr [me@jsbr.ca]
	 */
	public class RequestEvent 
	{
		
		static public const COMPLETE:String = "complete";
		static public const STATE_CHANGE:String = "statechange";
		static public const PROGRESS:String = "progress";
		
		private var _type:String;
		private var _state:int;
		private var _status:int;
		private var _currentTarget:Object;
		private var _skip:Boolean;
		
		public function RequestEvent(type:String,state:int=0,status:int=200) 
		{
			_status = status;
			_state = state;
			_type = type;
			
		}
		
		public function get state():int 
		{
			return _state;
		}
		
		public function get status():int 
		{
			return _status;
		}
		
		public function get currentTarget():Object 
		{
			return _currentTarget;
		}
		
		public function set currentTarget(value:Object):void 
		{
			_currentTarget = value;
		}
		
		public function get type():String 
		{
			return _type;
		}
		
		public function get skip():Boolean 
		{
			return _skip;
		}
		
		public function stopPropagation():void
		{
			_skip = true;
		}
		
	}

}